import request from './request'

// POST请求
export const $POST = (url, data, config) => {
    if (!config) {
        return request.post(url, data)
    }
    else {
        return request.post(url, data,config)
    }
}

// GET请求
export const $GET = (url, data) => {
    return request.get(url, data)
}

// GET请求
export const $DELETE = (url, data) => {
    return request.delete(url, data)
}